
<!DOCTYPE HTML>
<html lang="zh" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>非标准图表类型数据 · Pine Script 用户手册中文版</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="剑客">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="10session.html" />
    
    
    <link rel="prev" href="8reapint.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Introduction.html">
            
                <a href="../Introduction.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../quickstart/">
            
                <a href="../quickstart/">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../quickstart/example.html">
            
                <a href="../quickstart/example.html">
            
                    
                    Pine Script 示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../quickstart/studyVsStrategy.html">
            
                <a href="../quickstart/studyVsStrategy.html">
            
                    
                    “study” 与 “strategy”
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../quickstart/model.html">
            
                <a href="../quickstart/model.html">
            
                    
                    Pine Script 执行模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../quickstart/series.html">
            
                <a href="../quickstart/series.html">
            
                    
                    序列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../quickstart/understanding.html">
            
                <a href="../quickstart/understanding.html">
            
                    
                    理解 Pine Script
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../quickstart/editor.html">
            
                <a href="../quickstart/editor.html">
            
                    
                    Pine 编辑器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../quickstart/next.html">
            
                <a href="../quickstart/next.html">
            
                    
                    下一步
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../fundamentals/">
            
                <a href="../fundamentals/">
            
                    
                    语言基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../fundamentals/1structure.html">
            
                <a href="../fundamentals/1structure.html">
            
                    
                    脚本结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../fundamentals/2version.html">
            
                <a href="../fundamentals/2version.html">
            
                    
                    版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../fundamentals/3comment.html">
            
                <a href="../fundamentals/3comment.html">
            
                    
                    注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../fundamentals/4identifier.html">
            
                <a href="../fundamentals/4identifier.html">
            
                    
                    标识符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../fundamentals/5line.html">
            
                <a href="../fundamentals/5line.html">
            
                    
                    换行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../fundamentals/6type.html">
            
                <a href="../fundamentals/6type.html">
            
                    
                    类型系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../fundamentals/7operator.html">
            
                <a href="../fundamentals/7operator.html">
            
                    
                    运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../fundamentals/8function.html">
            
                <a href="../fundamentals/8function.html">
            
                    
                    函数和注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../fundamentals/9expressions.html">
            
                <a href="../fundamentals/9expressions.html">
            
                    
                    表达式、声明和语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../fundamentals/10function.html">
            
                <a href="../fundamentals/10function.html">
            
                    
                    函数声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../fundamentals/11model.html">
            
                <a href="../fundamentals/11model.html">
            
                    
                    执行模型
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    基本功能
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="1alert.html">
            
                <a href="1alert.html">
            
                    
                    警报
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="2array.html">
            
                <a href="2array.html">
            
                    
                    数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="3barstate.html">
            
                <a href="3barstate.html">
            
                    
                    柱状态，内置变量 barstate.*
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="4color.html">
            
                <a href="4color.html">
            
                    
                    颜色
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="5context.html">
            
                <a href="5context.html">
            
                    
                    上下文切换和 security 函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="6drawing.html">
            
                <a href="6drawing.html">
            
                    
                    绘图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="7extend.html">
            
                <a href="7extend.html">
            
                    
                    延长和扩展交易数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="8reapint.html">
            
                <a href="8reapint.html">
            
                    
                    指标重绘
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5.9" data-path="9nonstandard.html">
            
                <a href="9nonstandard.html">
            
                    
                    非标准图表类型数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="10session.html">
            
                <a href="10session.html">
            
                    
                    交易时段和时间信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="11strategies.html">
            
                <a href="11strategies.html">
            
                    
                    策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="12table.html">
            
                <a href="12table.html">
            
                    
                    图表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../annotations/">
            
                <a href="../annotations/">
            
                    
                    注解概览
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../annotations/1study.html">
            
                <a href="../annotations/1study.html">
            
                    
                    指标注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../annotations/2plot.html">
            
                <a href="../annotations/2plot.html">
            
                    
                    绘图注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../annotations/3input.html">
            
                <a href="../annotations/3input.html">
            
                    
                    脚本输入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../annotations/4price.html">
            
                <a href="../annotations/4price.html">
            
                    
                    价格水平，hline
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../annotations/5fill.html">
            
                <a href="../annotations/5fill.html">
            
                    
                    用 fill 填充背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../annotations/6barcolor.html">
            
                <a href="../annotations/6barcolor.html">
            
                    
                    使用 barcolor 为 series 着色
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../annotations/7bg.html">
            
                <a href="../annotations/7bg.html">
            
                    
                    使用 bgcolor 进行背景着色
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../annotations/8shape.html">
            
                <a href="../annotations/8shape.html">
            
                    
                    绘制形状、字符和箭头
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../annotations/9custom.html">
            
                <a href="../annotations/9custom.html">
            
                    
                    定制 OHLC 柱和蜡烛
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../debugging/">
            
                <a href="../debugging/">
            
                    
                    调试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../debugging/1introduction.html">
            
                <a href="../debugging/1introduction.html">
            
                    
                    指标注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../debugging/2land.html">
            
                <a href="../debugging/2land.html">
            
                    
                    功能位置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../debugging/3num.html">
            
                <a href="../debugging/3num.html">
            
                    
                    显示数值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../debugging/4str.html">
            
                <a href="../debugging/4str.html">
            
                    
                    显示字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../debugging/5conditions.html">
            
                <a href="../debugging/5conditions.html">
            
                    
                    调试条件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../debugging/6fn.html">
            
                <a href="../debugging/6fn.html">
            
                    
                    从内部函数调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../debugging/7for.html">
            
                <a href="../debugging/7for.html">
            
                    
                    从“for”循环内部调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../debugging/8tips.html">
            
                <a href="../debugging/8tips.html">
            
                    
                    提示
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../publishing/">
            
                <a href="../publishing/">
            
                    
                    发布脚本
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../publishing/1pvp.html">
            
                <a href="../publishing/1pvp.html">
            
                    
                    公共脚本与私有脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../publishing/2mode.html">
            
                <a href="../publishing/2mode.html">
            
                    
                    发布模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../publishing/3ps.html">
            
                <a href="../publishing/3ps.html">
            
                    
                    如何发布脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../publishing/4us.html">
            
                <a href="../publishing/4us.html">
            
                    
                    如何更新脚本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../library/">
            
                <a href="../library/">
            
                    
                    公共库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../library/1description.html">
            
                <a href="../library/1description.html">
            
                    
                    描述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../library/2copy.html">
            
                <a href="../library/2copy.html">
            
                    
                    将脚本从公共库复制到您的个人库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../library/3editing.html">
            
                <a href="../library/3editing.html">
            
                    
                    编辑来自公共库的脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../library/4searching.html">
            
                <a href="../library/4searching.html">
            
                    
                    搜索脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../library/5video.html">
            
                <a href="../library/5video.html">
            
                    
                    教学视频
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../appendix/">
            
                <a href="../appendix/">
            
                    
                    附录
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../appendix/1migration.html">
            
                <a href="../appendix/1migration.html">
            
                    
                    Pine 第 3 版迁移指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../appendix/2how.html">
            
                <a href="../appendix/2how.html">
            
                    
                    操作指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../appendix/3err.html">
            
                <a href="../appendix/3err.html">
            
                    
                    Pine 的编译和执行错误
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../more/">
            
                <a href="../more/">
            
                    
                    我可以从哪里获得更多信息？
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >非标准图表类型数据</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x975E;&#x6807;&#x51C6;&#x56FE;&#x8868;&#x7C7B;&#x578B;&#x6570;&#x636E;">&#x975E;&#x6807;&#x51C6;&#x56FE;&#x8868;&#x7C7B;&#x578B;&#x6570;&#x636E;</h1>
<p>&#x8FD9;&#x4E9B;&#x51FD;&#x6570;&#x5141;&#x8BB8;&#x811A;&#x672C;&#x4ECE;&#x975E;&#x6807;&#x51C6;&#x7684;&#x6761;&#x5F62;&#x56FE;&#x6216;&#x56FE;&#x8868;&#x7C7B;&#x578B;&#x4E2D;&#x83B7;&#x53D6;&#x4FE1;&#x606F;&#xFF0C;&#x800C;&#x4E0D;&#x8003;&#x8651;&#x811A;&#x672C;&#x6240;&#x8FD0;&#x884C;&#x7684;&#x56FE;&#x8868;&#x7C7B;&#x578B;&#x3002;&#x5B83;&#x4EEC;&#x662F;heikinashi&#x3001;renko&#x3001;linebreak&#x3001;kagi &#x548C; pointfigure&#x3002;&#x5B83;&#x4EEC;&#x7684;&#x5DE5;&#x4F5C;&#x65B9;&#x5F0F;&#x90FD;&#x662F;&#x4E00;&#x6837;&#x7684;, &#x5B83;&#x4EEC;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x7279;&#x6B8A;&#x7684; ticker &#x6807;&#x8BC6;&#x7B26;&#xFF0C;&#x4F5C;&#x4E3A; security &#x51FD;&#x6570;&#x8C03;&#x7528;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x3002;</p>
<h2 id="heikinashi-&#x51FD;&#x6570;">heikinashi &#x51FD;&#x6570;</h2>
<p>Heikin-Ashi &#x5728;&#x65E5;&#x8BED;&#x4E2D;&#x7684;&#x610F;&#x601D;&#x662F;&#x5E73;&#x5747;&#x67F1;&#x3002;Heikin-Ashi &#x8721;&#x70DB;&#x56FE;&#x7684;&#x5F00;&#x76D8;&#x4EF7;&#x3001;&#x6700;&#x9AD8;&#x4EF7;&#x3001;&#x6700;&#x4F4E;&#x4EF7;&#x548C;&#x6536;&#x76D8;&#x4EF7;&#x662F;&#x5408;&#x6210;&#x7684;&#xFF1B;&#x5B83;&#x4EEC;&#x4E0D;&#x662F;&#x5B9E;&#x9645;&#x4EF7;&#x683C;&#x3002;&#x6BCF;&#x4E2A;&#x503C;&#x90FD;&#x662F;&#x7528;&#x5F53;&#x524D;&#x548C;&#x524D;&#x4E00;&#x4E2A;&#x67F1;&#x7684;&#x6B63;&#x5E38; OHLC &#x503C;&#x7684;&#x7EC4;&#x5408;&#x6765;&#x8BA1;&#x7B97;&#x7684;&#x3002;&#x6240;&#x7528;&#x7684;&#x8BA1;&#x7B97;&#x65B9;&#x6CD5;&#x4F7F;&#x5F97; Heikin-Ashi &#x8721;&#x70DB;&#x56FE;&#x7684;&#x566A;&#x97F3;&#x6BD4;&#x666E;&#x901A;&#x8721;&#x70DB;&#x56FE;&#x5C0F;&#x3002;</p>
<p>heikinashi &#x51FD;&#x6570;&#x521B;&#x5EFA;&#x4E86;&#x4E00;&#x4E2A;&#x7279;&#x6B8A;&#x7684;&#x80A1;&#x7968;&#x6807;&#x8BC6;&#x7B26;&#xFF0C;&#x7528;&#x4E8E;&#x7528; security &#x51FD;&#x6570;&#x8BF7;&#x6C42; Heikin-Ashi &#x6570;&#x6570;&#x636E;&#x3002;</p>
<p>&#x8BE5;&#x811A;&#x672C;&#x8BF7;&#x6C42; Heikin-Ashi &#x67F1;&#x7684;&#x4F4E;&#x4EF7;&#xFF0C;&#x5E76;&#x5C06;&#x5176;&#x7ED8;&#x5236;&#x5728;&#x901A;&#x5E38;&#x7684;&#x8721;&#x70DB;&#x56FE;&#x4E4B;&#x4E0A;&#x3002;</p>
<pre><code>//@version=4
study(&quot;Example 5&quot;, overlay=true)
ha_t = heikinashi(syminfo.tickerid)
ha_low = security(ha_t, timeframe.period, low)
plot(ha_low)
</code></pre><p><img src="../img/38non/Pine_Heikinashi.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;Heikin-Ashi &#x67F1;&#x56FE;&#x7684;&#x4F4E;&#x4EF7;&#x4E0E;&#x666E;&#x901A;&#x8721;&#x70DB;&#x56FE;&#x7684;&#x4F4E;&#x4EF7;&#x662F;&#x4E0D;&#x540C;&#x7684;&#x3002;</p>
<p>&#x5982;&#x679C;&#x4F60;&#x60F3;&#x5173;&#x95ED;&quot;Example 5&quot;&#x4E2D;&#x7684;&#x5EF6;&#x957F;&#x5C0F;&#x65F6;&#x6570;&#x636E;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x5148;&#x4F7F;&#x7528; tickerid &#x51FD;&#x6570;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x76F4;&#x63A5;&#x4F7F;&#x7528; syminfo.tickerid &#x53D8;&#x91CF;&#xFF1A;</p>
<pre><code>//@version=4
study(&quot;Example 6&quot;, overlay=true)
t = tickerid(syminfo.prefix, syminfo.ticker, session.regular)
ha_t = heikinashi(t)
ha_low = security(ha_t, timeframe.period, low, gaps=barmerge.gaps_on)
plot(ha_low, style=plot.style_linebr)
</code></pre><p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;&#x6211;&#x4EEC;&#x4F7F;&#x7528;&#x4E86;&#x4E00;&#x4E2A;&#x989D;&#x5916;&#x7684;&#x7B2C;&#x56DB;&#x4E2A;&#x5177;&#x6709;&#x5B89;&#x5168;&#x6027;&#x7684;&#x53C2;&#x6570;&#xFF1A;gaps=barmerge.gaps_on&#xFF0C;&#x5B83;&#x6307;&#x793A;&#x8BE5;&#x51FD;&#x6570;&#x4E0D;&#x4F7F;&#x7528;&#x4EE5;&#x524D;&#x7684;&#x503C;&#x6765;&#x586B;&#x8865;&#x6CA1;&#x6709;&#x6570;&#x636E;&#x7684;&#x69FD;&#x3002;&#x8FD9;&#x610F;&#x5473;&#x7740;&#x6211;&#x4EEC;&#x5C06;&#x5728;&#x5EF6;&#x957F;&#x65F6;&#x95F4;&#x5185;&#x5F97;&#x5230;&#x7A7A;&#x7684;&#x533A;&#x57DF;&#x3002;&#x4E3A;&#x4E86;&#x80FD;&#x591F;&#x5728;&#x56FE;&#x8868;&#x4E0A;&#x770B;&#x5230;&#x8FD9;&#x4E00;&#x70B9;&#xFF0C;&#x6211;&#x4EEC;&#x8FD8;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x4E00;&#x79CD;&#x7279;&#x6B8A;&#x7684;&#x7ED8;&#x56FE;&#x6837;&#x5F0F;&#xFF08;style=plot.style_linebr&#xFF09;&#xFF0C;&#x5373;&#x5E26;&#x65AD;&#x70B9;&#x7684;&#x7EBF;&#x6761;&#x6837;&#x5F0F;&#x3002;</p>
<p>&#x4F60;&#x53EF;&#x4EE5;&#x4ECE;&#x811A;&#x672C;&#x4E2D;&#x7ED8;&#x5236; Heikin-Ashi &#x67F1;&#x56FE;&#xFF0C;&#x4F7F;&#x5B83;&#x4EEC;&#x770B;&#x8D77;&#x6765;&#x4E0E;&#x56FE;&#x8868;&#x4E2D;&#x7684; Heikin-Ashi &#x67F1;&#x56FE;&#x5B8C;&#x5168;&#x4E00;&#x6837;</p>
<pre><code>//@version=4
study(&quot;Example 6.1&quot;)
ha_t = heikinashi(syminfo.tickerid)
ha_open = security(ha_t, timeframe.period, open)
ha_high = security(ha_t, timeframe.period, high)
ha_low = security(ha_t, timeframe.period, low)
ha_close = security(ha_t, timeframe.period, close)
palette = ha_close &gt;= ha_open ? color.green : color.red
plotcandle(ha_open, ha_high, ha_low, ha_close, color=palette)
</code></pre><p><img src="../img/38non/Pine_Heikinashi_2.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x4F60;&#x53EF;&#x4EE5;&#x5728;&#x81EA;&#x5B9A;&#x4E49; OHLC &#x67F1;&#x548C;&#x8721;&#x70DB;&#x90E8;&#x5206;&#x627E;&#x5230;&#x66F4;&#x591A;&#x5173;&#x4E8E; plotcandle &#x548C; plotbar &#x529F;&#x80FD;&#x7684;&#x4FE1;&#x606F;&#x3002;</p>
<h2 id="renko-&#x51FD;&#x6570;">renko &#x51FD;&#x6570;</h2>
<p>Renko &#x67F1;&#x5F62;&#x56FE;&#x53EA;&#x7ED8;&#x5236;&#x4EF7;&#x683C;&#x8D70;&#x52BF;&#xFF0C;&#x4E0D;&#x8003;&#x8651;&#x65F6;&#x95F4;&#x6216;&#x6210;&#x4EA4;&#x91CF;&#x3002;&#x5B83;&#x4EEC;&#x662F;&#x7531;&#x523B;&#x5EA6;&#x7EBF;&#x6784;&#x6210;&#x7684;&#xFF0C;&#x770B;&#x8D77;&#x6765;&#x50CF;&#x5806;&#x79EF;&#x5728;&#x76F8;&#x90BB;&#x5217;&#x7684;&#x7816;&#x5757;[1]&#x3002;&#x5728;&#x4EF7;&#x683C;&#x8D85;&#x8FC7;&#x9876;&#x90E8;&#x6216;&#x5E95;&#x90E8;&#x7684;&#x9884;&#x5B9A;&#x6570;&#x989D;&#x540E;&#xFF0C;&#x4F1A;&#x753B;&#x51FA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x7816;&#x5757;&#x3002;</p>
<pre><code>//@version=4
study(&quot;Example 7&quot;, overlay=true)
renko_t = renko(syminfo.tickerid, &quot;ATR&quot;, 10)
renko_low = security(renko_t, timeframe.period, low)
plot(renko_low)
</code></pre><p><img src="../img/38non/Pine_Renko.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;&#x4F60;&#x4E0D;&#x80FD;&#x4ECE; Pine &#x811A;&#x672C;&#x4E2D;&#x51C6;&#x786E;&#x5730;&#x7ED8;&#x5236; Renko &#x7816;&#x5757;&#x7684;&#x5916;&#x89C2;&#x3002;&#x4F60;&#x53EA;&#x80FD;&#x5F97;&#x5230;&#x4E00;&#x7CFB;&#x5217;&#x7C7B;&#x4F3C;&#x4E8E; OHLC &#x503C;&#x7684; Renko &#x67F1;&#x7684;&#x6570;&#x5B57;&#xFF0C;&#x5E76;&#x5728;&#x4F60;&#x7684;&#x7B97;&#x6CD5;&#x4E2D;&#x4F7F;&#x7528;&#x5B83;&#x4EEC;&#x3002;</p>
<p>&#x8BE6;&#x7EC6;&#x60C5;&#x51B5;&#x8BF7;&#x89C1; renko.</p>
<h2 id="linebreak-&#x51FD;&#x6570;">linebreak &#x51FD;&#x6570;</h2>
<p>linebreak &#x56FE;&#x7C7B;&#x578B;&#x663E;&#x793A;&#x4E00;&#x7CFB;&#x5217;&#x57FA;&#x4E8E;&#x4EF7;&#x683C;&#x53D8;&#x5316;&#x7684;&#x5782;&#x76F4;&#x65B9;&#x6846;[1]&#x3002;</p>
<pre><code>//@version=4
study(&quot;Example 8&quot;, overlay=true)
lb_t = linebreak(syminfo.tickerid, 3)
lb_close = security(lb_t, timeframe.period, close)
plot(lb_close)
</code></pre><p><img src="../img/38non/Pine_Linebreak.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;&#x4F60;&#x4E0D;&#x80FD;&#x4ECE; Pine &#x811A;&#x672C;&#x4E2D;&#x5B8C;&#x5168;&#x6309;&#x7167;&#x5B83;&#x4EEC;&#x7684;&#x6837;&#x5B50;&#x7ED8;&#x5236; linebreak &#x56FE;&#x3002;&#x4F60;&#x53EA;&#x80FD;&#x5F97;&#x5230;&#x4E00;&#x7CFB;&#x5217;&#x7C7B;&#x4F3C;&#x4E8E; linebreak &#x56FE;&#x7684; OHLC &#x503C;&#x7684;&#x6570;&#x5B57;&#xFF0C;&#x5E76;&#x5728;&#x4F60;&#x7684;&#x7B97;&#x6CD5;&#x4E2D;&#x4F7F;&#x7528;&#x5B83;&#x4EEC;&#x3002;</p>
<p>&#x8BE6;&#x7EC6;&#x60C5;&#x51B5;&#x8BF7;&#x89C1; linebreak&#x3002;</p>
<h2 id="kagi-&#x51FD;&#x6570;">kagi &#x51FD;&#x6570;</h2>
<p>Kagi &#x56FE;&#x8868;&#x662F;&#x7531;&#x4E00;&#x6761;&#x6539;&#x53D8;&#x65B9;&#x5411;&#x7684;&#x8FDE;&#x7EED;&#x7EBF;&#x7EC4;&#x6210;&#x3002;&#x5F53;&#x4EF7;&#x683C;&#x53D8;&#x5316;[1]&#x8D85;&#x8FC7;&#x4E00;&#x4E2A;&#x9884;&#x5B9A;&#x7684;&#x6570;&#x989D;&#x65F6;&#xFF0C;&#x65B9;&#x5411;&#x5C31;&#x4F1A;&#x6539;&#x53D8;&#x3002;</p>
<pre><code>//@version=4
study(&quot;Example 9&quot;, overlay=true)
kagi_t = kagi(syminfo.tickerid, 1)
kagi_close = security(kagi_t, timeframe.period, close)
plot(kagi_close)
</code></pre><p><img src="../img/38non/Pine_Kagi.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;&#x4F60;&#x4E0D;&#x80FD;&#x4ECE; Pine &#x811A;&#x672C;&#x4E2D;&#x51C6;&#x786E;&#x5730;&#x7ED8;&#x5236; Kagi &#x7EBF;&#x3002;&#x4F60;&#x53EA;&#x80FD;&#x5F97;&#x5230;&#x4E00;&#x7CFB;&#x5217;&#x7C7B;&#x4F3C;&#x4E8E; Kagi &#x56FE;&#x8868;&#x7684; OHLC &#x503C;&#x7684;&#x6570;&#x5B57;&#xFF0C;&#x5E76;&#x5728;&#x4F60;&#x7684;&#x7B97;&#x6CD5;&#x4E2D;&#x4F7F;&#x7528;&#x5B83;&#x4EEC;&#x3002;</p>
<p>&#x8BE6;&#x7EC6;&#x60C5;&#x51B5;&#x8BF7;&#x89C1; kagi&#x3002;</p>
<h2 id="pointfigure-&#x51FD;&#x6570;">pointfigure &#x51FD;&#x6570;</h2>
<p>&#x70B9;&#x548C;&#x56FE;&#xFF08;PnF&#xFF09;&#x56FE;&#x8868;&#x53EA;&#x7ED8;&#x5236;&#x4EF7;&#x683C;&#x53D8;&#x52A8;[1]&#xFF0C;&#x4E0D;&#x8003;&#x8651;&#x65F6;&#x95F4;&#x3002;&#x5F53;&#x4EF7;&#x683C;&#x4E0A;&#x6DA8;&#x65F6;&#xFF0C;&#x4F1A;&#x7ED8;&#x5236;&#x4E00;&#x5217; X&#xFF0C;&#x800C;&#x5F53;&#x4EF7;&#x683C;&#x4E0B;&#x8DCC;&#x65F6;&#xFF0C;&#x4F1A;&#x7ED8;&#x5236; O&#x3002;</p>
<p>&#x8BF7;&#x6CE8;&#x610F;&#xFF0C;&#x4F60;&#x65E0;&#x6CD5;&#x4ECE; Pine &#x811A;&#x672C;&#x4E2D;&#x51C6;&#x786E;&#x5730;&#x7ED8;&#x5236;&#x51FA; PnF &#x7684; X &#x548C; O &#x7684;&#x6837;&#x5B50;&#x3002;&#x4F60;&#x53EA;&#x80FD;&#x5F97;&#x5230;&#x4E00;&#x7CFB;&#x5217;&#x4E0E; PnF &#x56FE;&#x8868;&#x7684; OHLC &#x503C;&#x76F8;&#x4F3C;&#x7684;&#x6570;&#x5B57;&#xFF0C;&#x5E76;&#x5728;&#x4F60;&#x7684;&#x7B97;&#x6CD5;&#x4E2D;&#x4F7F;&#x7528;&#x5B83;&#x4EEC;&#x3002;&#x6BCF;&#x4E00;&#x5217; X&apos;s &#x6216; O&apos;s &#x90FD;&#x7528;&#x56DB;&#x4E2A;&#x6570;&#x5B57;&#x8868;&#x793A;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x628A;&#x5B83;&#x4EEC;&#x770B;&#x4F5C;&#x662F;&#x5408;&#x6210;&#x7684; OHLC PnF &#x503C;&#x3002;</p>
<pre><code>//@version=4
study(&quot;Example 10&quot;, overlay=true)
pnf_t = pointfigure(syminfo.tickerid, &quot;hl&quot;, &quot;ATR&quot;, 14, 3)
pnf_open = security(pnf_t, timeframe.period, open, true)
pnf_close = security(pnf_t, timeframe.period, close, true)
plot(pnf_open, color=color.green, style=plot.style_linebr, linewidth=4)
plot(pnf_close, color=color.red, style=plot.style_linebr, linewidth=4)
</code></pre><p><img src="../img/38non/Pine_Point_and_Figure.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x6709;&#x5173;&#x8BE6;&#x7EC6;&#x4FE1;&#x606F;&#xFF0C;&#x8BF7;&#x53C2;&#x9605; pointfigure&#x3002;</p>
<hr>
<p>&#x811A;&#x6CE8;</p>
<p>[1] (1, 2, 3, 4) &#x5728; TradingView &#x4E0A;&#xFF0C;Renko&#x3001;Line Break&#x3001;Kagi &#x548C; PnF &#x56FE;&#x8868;&#x7C7B;&#x578B;&#x662F;&#x7531;&#x8F83;&#x4F4E;&#x65F6;&#x95F4;&#x7EA7;&#x522B;&#x7684; OHLC &#x503C;&#x751F;&#x6210;&#x7684;&#x3002;&#x56E0;&#x6B64;&#xFF0C;&#x8FD9;&#x4E9B;&#x56FE;&#x8868;&#x7C7B;&#x578B;&#x53EA;&#x4EE3;&#x8868;&#x4E86;&#x5B83;&#x4EEC;&#x4ECE; tick &#x6570;&#x636E;&#x751F;&#x6210;&#x7684;&#x8FD1;&#x4F3C;&#x60C5;&#x51B5;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="8reapint.html" class="navigation navigation-prev " aria-label="Previous page: 指标重绘">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="10session.html" class="navigation navigation-next " aria-label="Next page: 交易时段和时间信息">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"非标准图表类型数据","level":"1.5.9","depth":2,"next":{"title":"交易时段和时间信息","level":"1.5.10","depth":2,"path":"features/10session.md","ref":"./features/10session.md","articles":[]},"previous":{"title":"指标重绘","level":"1.5.8","depth":2,"path":"features/8reapint.md","ref":"./features/8reapint.md","articles":[]},"dir":"ltr"},"config":{"plugins":["livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"剑客","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Pine Script 用户手册中文版","language":"zh","gitbook":"*","description":"Pine Script 文档中文翻译"},"file":{"path":"features/9nonstandard.md","mtime":"2021-06-12T11:24:27.207Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-06-14T07:42:18.199Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

